package com.jingsheng.jingshengcity.mvp.ui.activity.authentication;

import android.content.Intent;
import android.support.annotation.NonNull;

import com.jess.arms.base.BaseActivity;
import com.jess.arms.di.component.AppComponent;
import com.jess.arms.utils.UiUtils;
import com.jingsheng.jingshengcity.R;
import com.jingsheng.jingshengcity.di.component.DaggerMemberAuthenticationAlreadyComponent;
import com.jingsheng.jingshengcity.di.module.MemberAuthenticationAlreadyModule;
import com.jingsheng.jingshengcity.mvp.contract.MemberAuthenticationAlreadyContract;
import com.jingsheng.jingshengcity.mvp.presenter.MemberAuthenticationAlreadyPresenter;

import static com.jess.arms.utils.Preconditions.checkNotNull;

/**
 * Created by Administrator on 2017/5/15.
 */

public class MemberAuthenticationAlreadyActivity extends BaseActivity<MemberAuthenticationAlreadyPresenter> implements MemberAuthenticationAlreadyContract.View {


    @Override
    public void setupActivityComponent(AppComponent appComponent) {
        DaggerMemberAuthenticationAlreadyComponent
                .builder()
                .appComponent(appComponent)
                .memberAuthenticationAlreadyModule(new MemberAuthenticationAlreadyModule(this))
                .build()
                .inject(this);
    }

    @Override
    public int initView() {
        setTitle("会员认证");
        return R.layout.activity_member_authentication_already;
    }

    @Override
    public void initData() {

    }


    @Override
    public void showLoading() {

    }

    @Override
    public void hideLoading() {

    }

    @Override
    public void showMessage(@NonNull String message) {
        checkNotNull(message);
        UiUtils.SnackbarText(message);
    }

    @Override
    public void launchActivity(@NonNull Intent intent) {
        checkNotNull(intent);
        UiUtils.startActivity(intent);
    }

    @Override
    public void killMyself() {
        finish();
    }


}